<?php
namespace core\lib;

class conf{
  static public $conf=array();
  static public function get($file,$name=null){
    $file=MZL.'/core/config/'.$file.'.php';
    if(!isset(self::$conf[$file])){
      if(is_file($file)){
        $conf=include $file;
        self::$conf[$file]=$conf;
      }else return false;
    }
    $conf=self::$conf[$file];
    if(is_null($name))
      return $conf;
    return isset($conf[$name])?$conf[$name]:false;

  }
}
